<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="header" >
    <a  class="left-btn pointer" href="{$appkucun}"><span class="iconfont icon-back"></span></a>
    <div class="title">产品管理</div>
    <a class="right-btn" href="{$appkucun}?m=product&a=add">添加</a>    
  </div>
 
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="product" />
 
<div class="input-row"> 
	<label>关键字</label>
    <input type="text" name="title" value="{$smarty.get.title}" class="w200" />
</div>
 
<button type="submit" value="搜索" class="btn btn-row" >搜索</button>
</form>
 
 
 
 <div class="uclist">
  
  {foreach item=c from=$data}
  <div class="item">
  	<div class="pd">
    <div class="hd">{$c.title}</div>
    <div>{$c.cname}{if $c.cname_2nd}>{$c.cname_2nd}{/if}{if $c.cname_3nd}>{$c.cname_3nd}{/if}</div>
    <div>￥{$c.price}/￥{$c.lower_price} <span class="right">库存：{$c.total_num}/销量：{$c.buy_num}</span></div>
     
    <div>{$c.dateline|date:Y-m-d}</div>
     
     
    <div class="tools">
    	<a href="index.php?m=show&id={$c.id}&model_id={$c.model_id}" target="_blank">查看</a>  
        <a href='{$appkucun}?m=product&a=add&id={$c.id}'>编辑</a>  
    </div>
  </div>
  </div>
  {/foreach}
 
{$pagelist}
</div>
 
{include file='footer.html'}
</body>
</html>